<%@page import="com.lynn.salary.util.ToolMethod"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String htmlbox = basePath + "htmlbox" + "/";
	String ai = "ai-" + ToolMethod.getCharAndNumr(6);
%>
<span style="padding-left:5px;">文章当前为:<span style="color:blue;margin-right:5px;font-style:bold;"><s:property value="status" /></span>
</span>
您可以
<s:if test="status!='发布'">
	<input type="button" value="发布"
		onclick="change_article_status_btn_abc('1')" />
</s:if>
<s:else>
	<input type="button" value="撤销"
		onclick="change_article_status_btn_abc('-1')" />
</s:else>
<script>
var change_article_status_btn_abc=function(v){
	var url_ = "<%=basePath%>article!ajaxpublish.do?flag="
				+ v
				+ "&elemid=<s:property value='elemid'/>&article.id=<s:property value="article.id"/>";
		$.ajax({
			url : url_
		}).done(function(data) {
			$("#<s:property value='elemid'/>").html(data);
		});
	};
</script>
